import service from "@/request/index";
//新增
export function addGoods(params:any){
    return service({
        url:"/addGoods",
        method:"get",
        params
    })
}

//查询
export function querygoods(params:any){
    return service({
        url:"/querygoods",
        method:"get",
        params
    })
}

//删除
export function delGoods(id:number){
    return service({
        url:`/delGoods/${id}`,
        method:"delete"
    })
}

//修改
export function updataGoods(params:any){
    return service({
        url:"/updataGoods",
        method:"put",
        data: params
    })
}
